Now, let's review the
container lifecycle. You can make the most
of Cloud Run when you understand the full
container lifecycle, and the possible state
transitions within it. The relevant states of a
container are starting. Starting state is when Cloud Run materializes the container image and start your application. Serving requests. This is when your container
is handling web requests. Idle. Idle means the container is not handling web requests, and it is an important
state on Cloud Run. Do you remember why? I'm reviewing that
later. Shutting down. Cloud Run allows you to
stop the application gracefully if you handle
the shutdown hook. Stopped. The final state of the lifecycle is where
the container is stopped. Let's review the states
from starting to stopped and all the
transitions between them.